// 获取表单容器
const registerForm = document.getElementById('register-form');
const loginForm = document.getElementById('login-form');
const formTitle = document.getElementById('form-title');
const formSubtitle = document.getElementById('form-subtitle');

// 显示注册表单
function showRegister() {
    registerForm.style.transform = 'translateX(0)';
    loginForm.style.transform = 'translateX(100%)';
    formTitle.innerText = '新用户注册';
    formSubtitle.innerText = 'USER REGISTER';
}

// 显示登录表单
function showLogin() {
    registerForm.style.transform = 'translateX(-100%)';
    loginForm.style.transform = 'translateX(0)';
    formTitle.innerText = '用户登录';
    formSubtitle.innerText = 'USER LOGIN';
}


// 默认显示注册表单
showRegister();





